package com.lggry.singleinstance;

public class Test {
    public static void main(String[] args) {
        //目标：设计单例类。
        A a1 = A.a;
        A a2 = A.a;
        System.out.println(a1 == a2);

    }
}
